package com.mao.extends6constructor;

public class Test3 {
    //this()调用兄弟构造器
    //创建对象，存储学生数据
    public static void main(String[] args) {
        Student s1 = new Student("Jame", '男',18,"MIT");
        System.out.println(s1);
        Student s2 = new Student("Mary", '女',1);
        System.out.println(s2);
    }
}
